package com.guigu.youxuan.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author liweixin
 * @since 2024-05-15
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("purchase_order_details")
public class PurchaseOrderDetails implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键，自增id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 采购订单id
     */
    private Integer purchaseId;

    /**
     * 商品id
     */
    private Integer goodsId;

    /**
     * 仓库id
     */
    @TableField(exist = false)
    private Integer warehouseId;

    /*商品名称*/
    @TableField(exist = false)
    private String name;

    /* 商品图片*/
    @TableField(exist = false)
    private String imgLink;
    /**
     * 采购数量
     */
    private Integer count;

    /**
     * 价格
     */
    private Integer price;

    /**
     * 总价
     */
    private Integer subtotal;




}
